﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Ext.Net;
using System.Configuration;
using LongSpeed.WebSite.Behaviors;

namespace LongSpeed.WebSite
{
    public partial class Login : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                this.Title = "用户登录";
                //txtPassword.Text = "admin";
                //txtUsername.Text = "admin";
                //txtVerificationCode.Text = Session[Behaviors.SessionString.VerificationCode] + "";
            }
        }
        [Ext.Net.DirectMethod]
        public string UserLogin()
        {
           return  Behaviors.Session.Login(txtUsername.Text, txtPassword.Text, txtVerificationCode.Text, this);
        }
    }
}